import request from '@/utils/request'
const MODEL_NAME = '/proscenium/module'
export function selectModuleById(moduleId, page, limit) {
  return request({
    url: `${MODEL_NAME}/selectModuleById/${moduleId}/${page}/${limit}`,
    method: 'get',
    
  })
}
export function addModule(relationshipId,
  title,
  text) {
  return request({
    url: `${MODEL_NAME}/addModule`,
    method: 'post',
    data: {
      relationshipId,
      title,
      text   
    }
  })
}
export function selectModuleByUserIdAndRelationId(userId,relationId) {
  return request({
    url: `${MODEL_NAME}/selectModuleByUserId`,
    method: 'post',
    params: {userId,relationId}
    
  })
}